package com.ulic.customerManApplication.membermodule.service;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.ulic.customerManApplication.exception.SystemException;
import com.ulic.customerManApplication.membermodule.bo.Member;
import com.ulic.customerManApplication.membermodule.bo.SubMember;
import com.ulic.customerManApplication.membermodule.vo.SubMemberVO;
import com.ulic.customerManApplication.pager.PagerModel;

public interface MemberExtService {

	public Map<String , List<Member>> getMembersByPhone(Collection<String> phones);
	
	public Map<String , List<Member>> getMembersByIdCard(Collection<String> idCards);
	
	public Map<String , List<Member>> getMembersByName(Collection<String> names);
	
	public Map<Integer , Member> getMembersById(Collection<Integer> ids);
	
	public void saveOrUpdateMembers(Collection<Member> members);
	
	public void saveSubMembers(Collection<SubMember> subMembers) throws SystemException;
	
	public List<SubMember> getSubMembersByMember(Integer id);
	
	public PagerModel getSubMembers(SubMemberVO subMemberVO, int curPage);

	public SubMember getMemberEnjoySubMemberByPhone(String sub_cellPhone, String memberEnjoyId);
	
	
	public void updateDatabaseForMember() throws SystemException;
	
}
